package cn.flying.cloud.esb.core.enums;

import cn.flying.cloud.base.common.enums.BaseEnumInfo;

/**
 * 错误码
 *
 * @author: admin
 * @date: 2025年01月17日 17:03
 * @version: 1.0
 */
public enum ErrorCodeEnum implements BaseEnumInfo {
    E_0000("0000", "交易成功"),
    E_1001("1001", "不支持的HTTP类型"),
    E_1002("1002", "应用标识符不存在"),
    E_1003("1003", "无访问权限"),
    E_1004("1004", "请求参数异常"),
    E_1005("1005", "请求过期"),
    E_1006("1006", "签名验证失败"),
    E_1007("1007", "数据解密失败"),
    E_9999("9999", "系统异常"),
    ;

    private final String code;
    private final String desc;

    ErrorCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    /**
     * 获取枚举码值
     *
     * @return
     */
    @Override
    public String getCode() {
        return this.code;
    }

    /**
     * 获取枚举描述
     *
     * @return
     */
    @Override
    public String getDesc() {
        return this.desc;
    }
}
